package com.veinin.util;


public class SessionFactoryUtil {
//	private static SessionFactory sessionFactory;
//	private static ServiceRegistry serviceRegistry;
//	private static Session session;
//	
//	public static Session getSession() {
//		Configuration cfg = new Configuration().configure();
//		serviceRegistry = new ServiceRegistryBuilder().applySettings(cfg.getProperties())
//				.buildServiceRegistry();
//		sessionFactory = cfg.buildSessionFactory(serviceRegistry);
//		session = sessionFactory.getCurrentSession();
//		
//		return session;
//	}
	
	
}	
